<?php
	session_start();

	if(!isset($_SESSION['nom']))
	{
		?>
		<form action="acceder.php" method="post" >
			<label for="nom">Nom </label>
			<input type="text" name="nom" id="nom" size="50" maxlength="50" />
			<label for="mdp">Mot de passe </label>
			<input type="text" name="mdp" id="mdp" size="50" maxlength="50" />

			<input type="submit" value="Envoyer" />
		</form>
		<?php
	}
	else
	{
		header("Location: acceder.php"); 
	}
?>
